package com.service;

import java.util.List;

import com.mytest.model.User;

public interface UserService
{
	public User getUserById(Integer userId) throws Exception;
	
    public int saveOrUpdate(User user) throws Exception;
    
    /** 
     * @Title: findUser方法
     * @Description: 根据userName和password查询记录<br/>
     * 		1、userName或password为空，返回null
     * @param userName
     * @param password
     * @return
     * @throws Exception    
     */
    public List<User> findUser(String userName, String password) throws Exception;
}
